package com.smart_environmental_protection.service.ServiceImp;

import com.smart_environmental_protection.dao.ContentDao;
import com.smart_environmental_protection.dao.NewsDao;
import com.smart_environmental_protection.pojo.News;
import com.smart_environmental_protection.service.NewsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NewsServiceImp implements NewsService {
    @Resource
    private NewsDao newsDao;

    @Override
    public List<News> NewsList() {
        return newsDao.NewsList();
    }
}

